package base.day25;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Properties2 {
    public static void main(String[] args) throws IOException {
        Properties prop=new Properties();
//        FileReader fr=new FileReader("E:\\java\\java project\\java-code\\p.txt");
//        prop.load(fr);
//        fr.close();
//        System.out.println(prop);


        prop.put("zhangsan","23");
        prop.put("lisi","24");
        prop.put("wangwu","25");
        prop.put("zhaoliu","26");


        FileWriter fw=new FileWriter("E:\\java\\java project\\java-code\\p.txt");
        prop.store(fw,"abc");
        fw.close();



    }
}
